package com.bigevent.bigevent.po;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @author yangxudong
 * @description: 修改密码po
 * @date 2024/2/10 10:54
 */
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
@Data
public class UpdatePwdPo {
    @NotEmpty
    @Pattern(regexp = "^\\S{5,16}$")
    private String oldPwd;
    @NotEmpty
    @Pattern(regexp = "^\\S{5,16}$")
    private String newPwd;
    @NotEmpty
    @Pattern(regexp = "^\\S{5,16}$")
    private String rePwd;
}
